package ink.xiaobaibai.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaobaibai
 * @since 2021-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("monthly_refund_deposit")
@NoArgsConstructor
public class MonthlyRefundDeposit implements Serializable {

    private static final long serialVersionUID = 1L;

    public MonthlyRefundDeposit(String orderId, String depositId, Integer logisticsId, BigDecimal amount, String status) {
        this.orderId = orderId;
        this.depositId = depositId;
        this.logisticsId = logisticsId;
        this.amount = amount;
        this.status = status;
    }

    /**
     * 月费押金退款表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 对应订单id
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 对应押金id
     */
    @TableField("deposit_id")
    private String depositId;

    /**
     * 对应物流id
     */
    @TableField("logistics_id")
    private Integer logisticsId;

    /**
     * 退款金额
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 状态(业务员,经理,管理员,已退款完成,已被客户取消)
     */
    @TableField("status")
    private String status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


}
